<template>
  <div>
    <h1>娱乐新闻</h1>
    <div>
      <label>姓名:</label>
      <input type="text" v-model="student.name">
    </div>
    <div>
      <label>年龄:</label>
      <input type="number" v-model="student.age">
    </div>
  </div>

</template>

<script>
export default {
  data(){
    return{
      student:{
        name:'',
        age:0
      }
    }
  },
  beforeCreate(){
    console.log('------娱乐新闻beforeCreate--------');
  },
  created(){
    console.log('------娱乐新闻created--------');
  },
  beforeMount(){
     console.log('------娱乐新闻beforeMount--------');
  },
  mounted(){
     console.log('------娱乐新闻mounted--------');
  },
  beforeDestroy(){
    console.log('------娱乐新闻beforeDestroy--------');
  },
  destroyed(){
    console.log('------娱乐新闻destroyed--------');
  },
  activated(){
     console.log('------娱乐新闻activated-------');
  },
  deactivated(){
    console.log('------娱乐新闻deactivated-------');
  }
}
</script>

<style>

</style>